package cool.mtc.base.plugin.generator.code.exception;

import cool.mtc.core.exception.CustomException;
import cool.mtc.core.result.Result;
import cool.mtc.core.result.ResultConstant;

/**
 * @author 明河
 */
public class CodeGeneratorException extends CustomException {

    public CodeGeneratorException(String message) {
        this(ResultConstant.ERROR, message);
    }

    public CodeGeneratorException(Result<Object> result) {
        this(result, result.getMsg());
    }

    public CodeGeneratorException(Result<Object> result, String message) {
        super(result, message);
    }
}
